/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

.product-comments-container {
  margin-bottom: 1.5rem;
}

.product-average-rating {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.product-average-rating .rating-value {
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 0.3rem;
}

.product-average-rating .rating-star {
  color: #ffb700;
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.product-average-rating .rating-count {
  color: #666;
  font-size: 0.9rem;
}

.comments-list {
  margin-top: 2rem;
}

.comments-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.comment-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.comment-username {
  font-weight: 600;
  color: #333;
  margin-right: 1rem;
}

.comment-rating {
  color: #ddd;
  font-size: 1.2rem;
}

.comment-rating span.filled {
  color: #ffb700;
}

.comment-date {
  color: #888;
  font-size: 0.85rem;
}

.comment-text {
  line-height: 1.5;
  color: #555;
}

.no-comments {
  text-align: center;
  color: #777;
  font-style: italic;
  margin: 2rem 0;
}

.comments-loading {
  text-align: center;
  color: #777;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .comment-username {
    margin-bottom: 0.3rem;
  }
  
  .comment-date {
    margin-top: 0.3rem;
  }
}